package com.wwl.ailangchain4j.controller;

import com.wwl.ailangchain4j.entity.Appointment;
import com.wwl.ailangchain4j.service.AppointmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wwl
 * 日期  2025/11/3 15:10
 * 版本 1.0
 * 描述 :
 */
@RestController
public class AppointmentController {
    @Autowired
    private AppointmentService appointmentService;
    @PostMapping("/appointment/getOne")
    public Appointment getOne(@RequestBody Appointment appointment) {
        return appointmentService.getOne(appointment);
    }
    @PostMapping("/appointment/save")
    public Boolean save(@RequestBody Appointment appointment) {
        return appointmentService.save( appointment);
    }
}
